import * as echarts from "echarts";

// 实收金额
export const init = (dom) => {
  const chart = echarts.init(dom);
  chart.setOption({
    tooltip: {},
    legend: {
      data: ["数据1", "数据2", "数据3"],
    },
    xAxis: {
      type: "category",
      // boundaryGap: false,
      data: ["8.14", "8.15", "8.16", "8.17", "8.18", "8.19", "8.20"],
    },
    yAxis: {
      type: "value",
    },
    series: [
      {
        name: "金额",
        type: "line",
        smooth: true,
        stack: "总量",
        data: [10, 8, 6, 9, 7,12,4,21],
      },
    ],
  });
};
